<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../../templates/principalTemplate.xhtml">

            <ui:define name="content">
                <h:form>
                    <p:panel header="Aceptar ingreso" >
                        <h:panelGrid cellpadding="5" style="padding: 0 15%;">
                            <p:dataTable id="aceptarIngreso">
                                <p:column headerText="Usuario">
                                </p:column>
                                <p:column headerText="Monto">
                                </p:column>
                                <p:column style="width:4%">  
                                    <p:commandButton id="btnResponder" >  
                                    <f:setPropertyActionListener value="#{car}" target="#{tableBean.selectedCar}" />  
                                    </p:commandButton>  
                                </p:column>  
                            </p:dataTable>
                        </h:panelGrid>
                        <h:panelGrid columns="3" cellpadding="5">
                            <p:outputLabel for="slcConsumidor" value="Consumidor"/>
                            <p:selectOneMenu id="slcConsumidor" />
                            <p:message for="slcConsumidor" />
                            <p:outputLabel for="slcIngreso" value="Ingreso"/>
                            <p:selectOneMenu id="slcIngreso" />
                            <p:message for="slcIngreso" />
                            <p:commandButton id="btnAceptar" value="Aceptar" ajax="false" />
                            <h:panelGroup />
                            <p:commandButton id="btnCancelar" value="Cancelar" ajax="false" />
                        </h:panelGrid>
                    </p:panel>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
